widget: Add a translate_coordinates version for doubles
authorTimm Bäder <mail@baedert.org>
Wed, 7 Mar 2018 14:14:37 +0000 (15:14 +0100)
committerTimm Bäder <mail@baedert.org>
Wed, 7 Mar 2018 19:17:39 +0000 (20:17 +0100)
commit38fa5ab57bd9f4af8e90b9a4a0cdf99519b7e3bb
tree2af2e4963534cdc29541fe21d4279a4736e44d52
parent034017425c6e4ad4d3c038fbaafbd2759d544476
widget: Add a translate_coordinates version for doubles

So we can use that one when translating event coordinates. Also adapt
the widgetfocus demo to ensure this works.

We should probably at some point delete either the int or the double
version.
gtk/gtkwidget.c
tests/testwidgetfocus.c